<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>DBLINK数据库链接管理</title>
<link rel="stylesheet" type="text/css" href="../../css/reset.css" />
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/jquery-easyui-1.4.3/themes/icon.css" />
<link rel="stylesheet" type="text/css"
	href="../../js/SimpleTree1.3/js/tree_themes/SimpleTree.css" />
<link rel="stylesheet" type="text/css" href="../../css/colorReset.css" />

<style>
.popup_con .label {
	width: 120px;
}

.popup_con {
	border: 1px solid #95B8E7;
	width: 380px;
	margin: 10px auto 0 auto;
}

.popup_con h3 {
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	background: rgb(210, 224, 242);
	padding: 5px;
}

.popup_con ul {
	margin: 10px auto;
	width: 380px;
	overflow: hidden;
}

.popup_con ul li {
	width: 340px;
	display: block;
	float: left;
	height: 25px;
	overflow: hidden;
	padding: 5px 0;
}

.popup_con ul li.li_col {
	width: 380px;
	height: auto;
}
</style>


</head>

<body>
	<div class="main">
		<!-- 检索区域开始 -->
		<div class="sel_div">
			<table cellpadding="0" cellspacing="0" class="sel_con">
				<tr>
					<th colspan="5">数据检索</th>
				</tr>
				<tr>
					<td colspan="2"><label style="width: 130px;">数据库链接名称：</label><input
						type="text" name="txtSearchDatabaseLinkName"
						id="txtSearchDatabaseLinkName" class="text" /></td>

					<td><label>数据库名称：</label> <input id="txtSearchDatabaseName"
						name="txtSearchDatabaseName" class="text" /></td>

					<td><button onclick="search()"
							class="query_btn easyui-linkbutton" iconCls="icon-search">查询</button></td>
					<td>
						<button class="query_btn easyui-linkbutton" iconCls="icon-reset"
							onclick="onReset()">重置</button>
					</td>
				</tr>

			</table>
		</div>
		<!-- 检索区域结束 -->

		<div class="data_con">
			<div id="toolbox" style="padding: 5px; height: 25px">
				<div style="margin-bottom: 5px; float: left">
					<a href="javascript:void(0)" onclick="add()"
						class="easyui-linkbutton" id="toolbar_add" iconCls="icon-add"
						plain="true">新增</a> <a href="javascript:void(0)"
						onclick="update()" class="easyui-linkbutton" id="toolbar_modify"
						iconCls="icon-edit" plain="true">修改</a> <a
						href="javascript:void(0)" onclick="del()"
						class="easyui-linkbutton" id="toolbar_delete"
						iconCls="icon-remove" plain="true">刪除</a>
				</div>
			</div>
			<table id="datagrid" style="height: 345px"
				data-options="fitColumns:true,toolbar:'#toolbox'">
			</table>
		</div>

	</div>

	<div id="win" class="easyui-window" title="DBLINK数据库链接管理-新增"
		style="width: 430px; height: auto; top: 20px"
		data-options="iconCls:'icon-save',modal:true,minimizable:false,maximizable:false,collapsible:false">
		<form id="addForm" method="post">
			<div class="popup_con">

				<ul>
					<li class="li_col"><label for="txtDatabaseLinkName"
						class="label">数据库链接名称：</label>
						<div class="input_con">
							<input type="text" class="easyui-validatebox text"
								id="txtDatabaseLinkName"
								data-options="required:true,validType:'length[0,50]'"
								missingMessage="数据库连接名称不能为空!" name="txtDatabaseLinkName" />
						</div></li>
					<li class="li_col"><label for="txtDatabaseType" class="label">主机：</label>
						<div class="input_con">
							<input type="text" class="easyui-validatebox text"
								name="hostcomputer"
								data-options="required:true,validType:'host'"
								missingMessage="主机不能为空!" id="hostcomputer" />

						</div></li>
					<li class="li_col"><label for="txtDatabaseName" class="label">数据库名称：</label>
						<div class="input_con">
							<input type="text" id="txtDatabaseName"
								class="easyui-validatebox text"
								data-options="required:true,validType:'length[0,50]'"
								missingMessage="数据库名称不能为空!" name="txtDatabaseName" />
						</div></li>
					<li class="li_col"><label for="txtUserName" class="label">用户名：</label>
						<div class="input_con">
							<input type="text" id="txtUserName"
								class="easyui-validatebox text"
								data-options="required:true,validType:'length[0,255]'"
								missingMessage="用户名不能为空!" name="txtUserName" />
						</div></li>
					<li class="li_col"><label for="txtUserPass" class="label">密码：</label>
						<div class="input_con">
							<input type="password" id="txtUserPass"
								class="easyui-validatebox text"
								data-options="required:true,validType:'length[0,255]'"
								missingMessage="密码不能为空!" name="txtUserPass" />
						</div></li>
					<li class="li_col"><label for="txtPort" class="label">端口：</label>
						<div class="input_con">
							<input type="text" id="txtPort" class="easyui-validatebox text"
								data-options="required:true,validType:'port'"
								missingMessage="端口不能为空!" name="txtPort" />
						</div></li>
				</ul>
			</div>

		</form>
		<div id="buttons" class="button_con">
			<a href="javascript:void(0)" onclick="onSave()"
				class="easyui-linkbutton" id="instance_save" iconCls="icon-ok"
				plain="true">保存</a> <a href="javascript:void(0)" onclick="rePage()"
				class="easyui-linkbutton" id="instance_cancel" iconCls="icon-cancel"
				plain="true">取消</a>
		</div>
	</div>
	<script type="text/javascript" src="/webjars/json3/3.3.2/json3.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
	<script type="text/javascript"
		src="../../js/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>

	<script type="text/javascript" src="../../js/cook/FormValidate.js"></script>
	<script type="text/javascript" src="../../js/rsa/security.js"></script>
	<script type="text/javascript" src="../../js/rsa/rsaly.js"></script>
	<script type="text/javascript" src="../../js/cook/constants.js"></script>
	<script type="text/javascript" src="../../js/cook/public.js"></script>
	<script type="text/javascript"
		src="../../js/cook/LedgerManagement/DBlinkDataSource.js"></script>
	<script>

</script>
</body>
</html>



